﻿app.controller('EventDetailsController', ['$scope', 'EventDetailsFactory', '$routeParams', '$q', function ($scope, EventDetailsFactory, $routeParams, $q, defer) {
    $scope.eventDetails = EventDetailsFactory.event;
    EventDetailsFactory.getEvent($routeParams.id).then(function (data) {
        $scope.eventDetails = data;
    }
    );
}]);